module.exports = {
  //关闭eslint检测
  lintOnSave: false,
  //修改路径别名
  configureWebpack: {
    resolve: {
      //extensions: ['.js', '.vue', '.json'],
      alias: {
        //"@": "src", //已经配置过
        "assets": "@/assets",
        "common": "@/common",
        "components": "@/components",
        "request": "@/request",
        "views": "@/views",
      }
    }
  },
  //接口代理
  devServer: {
    host: 'localhost',
    port: 5050,
    //接口代理
    proxy: {
      '/api': {
        target: "http://kumanxuan1.f3322.net:8001/",
        changeOrigin: true,
        pathRewrite: {
          "^/api": ''
        }
      }
    }
  }
}